﻿// See https://aka.ms/new-console-template for more information

using StackExchange.Redis;

Console.WriteLine("Hello, World!");

var redis = ConnectionMultiplexer.Connect(
    new ConfigurationOptions {
        EndPoints = { "localhost:16379" }
    });
var db = redis.GetDatabase();
db.StringSet("My Key", "My Value");
Console.WriteLine(db.StringGet("My Key"));

var dictionary = new Dictionary<string, string>();
dictionary["My Key"] = "My Value";
Console.WriteLine(dictionary["My Key"]);